<div class="modal-header">
    <h3 class="modal-title">资源授权-{{item.role_name}}</h3>
</div>
<div prevent-right-click class="modal-body">
    <div class="container-fluid permission-container tree-container">
        <div class="col-xs-6 pages-tree-container">
            <div class="row page-title">
                <i class="glyphicon glyphicon-picture"></i>
                <span>首页选择</span>
                <i ng-show="isPageLoading" class="glyphicon glyphicon-refresh glyphicon-refresh-animate tree-refresh"></i>
            </div>
            <div class="row page-tree">
                <treecontrol class="tree-custom"
                             tree-model="treePageModels"
                             options="treePageOptions"
                             selected-nodes="selectedPages"
                             expanded-nodes="expandedPageFolders"
                             on-selection="itemPageSelected(node)">
                <span class="tree-node-item">
                    <span ng-switch="" on="node.type">
                         <span ng-switch-when="folder" class="glyphicon glyphicon-folder-open page_node" aria-hidden="true"></span>
                         <span ng-switch-when="element">
                             <span ng-switch="" on="node.data.page_home">
                                 <span ng-switch-when="1" aria-hidden="true" class="glyphicon glyphicon-home page_node"></span>
                                 <span ng-switch-when="0" aria-hidden="true" class="glyphicon glyphicon-picture page_node hide"></span>
                            </span>
                         </span>
                    </span>
                    <span ng-hide="node.type == 'element' && node.data.page_home == 0">
                        <a class="tree-node-hover">{{node.name}}</a>
                    </span>
                </span>
                </treecontrol>
            </div>
        </div>
        <div class="col-xs-6 pages-tree-container">
            <div class="row page-title">
                <i class="glyphicon glyphicon-picture"></i>
                <span>指标选择</span>
                <i ng-show="isIndexLoading" class="glyphicon glyphicon-refresh glyphicon-refresh-animate tree-refresh"></i>
            </div>
            <div class="row page-tree">
                <treecontrol class="tree-custom"
                             tree-model="treeIndexModels"
                             options="treeIndexOptions"
                             selected-nodes="selectedIndexs"
                             expanded-nodes="expandedIndexFolders"
                             on-selection="itemIndexSelected(node)">
                 <span class="tree-node-item">
                    <span ng-switch="" on="node.type">
                         <span ng-switch-when="folder" class="glyphicon glyphicon-folder-open chart_node" aria-hidden="true"></span>
                         <span ng-switch-when="element" class="glyphicon glyphicon-stats chart_node" aria-hidden="true"></span>
                    </span>
                    <a class="tree-node-hover">{{node.name}}</a>
                </span>
                </treecontrol>
            </div>
        </div>
    </div>
</div>
<div class="modal-footer">
    <button class="btn btn-primary" type="button" ng-click="ok()">确认</button>
    <button class="btn btn-warning" type="button" ng-click="cancel()">取消</button>
</div>
